﻿using DataAccessObject;
using DataAccessObject.DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUSINESS
{
    public static class LopHocBUS
    {
        private static LopHocDAO dao = new LopHocDAO();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static List<LOPHOC> getAllLopHoc()
        {
            return dao.getAllLopHoc();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        public static void insertLopHoc(LOPHOC lophoc, NAMHOC namhoc, KHOILOP khoilop, GIAOVIEN giaovien, BANLOPHOC banhoc)
        {
            dao.insertLopHoc(lophoc, namhoc, khoilop, giaovien, banhoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        /// <returns></returns>
        public static GIAOVIEN getGiaoVienChuNhiem(LOPHOC lophoc)
        {
            return dao.getGiaoVienChuNhiem(lophoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        /// <returns></returns>
        public static LOPHOC getFullLopHoc(LOPHOC lophoc)
        {
            return dao.getFullLopHoc(lophoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        /// <param name="namhoc"></param>
        /// <param name="khoilop"></param>
        /// <param name="giaovien"></param>
        public static LOPHOC updateLopHoc(LOPHOC lophoc, NAMHOC namhoc, KHOILOP khoilop, GIAOVIEN giaovien)
        {
            return dao.updateLopHoc(lophoc, namhoc, khoilop, giaovien);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="banhoc"></param>
        /// <returns></returns>
        public static List<LOPHOC> getLopHocByBanHoc(BANLOPHOC banhoc)
        {
            return dao.getLopHocByBanHoc(banhoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static List<LOPHOC> getLopHocByKhoiLop(KHOILOP khoilop)
        {
            return dao.getLopHocByKhoiLop(khoilop);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        /// <param name="hocsinh"></param>
        /// <returns></returns>
        public static string insertHocSinh(LOPHOC lophoc, HOCSINH hocsinh)
        {
            return dao.insertHocSinh(lophoc, hocsinh);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="namhoc"></param>
        /// <param name="giaovien"></param>
        /// <returns></returns>
        public static LOPHOC getLopHocByNamHocAndGiaoVien(NAMHOC namhoc, GIAOVIEN giaovien)
        {
            return dao.getLopHocByNamHocAndGiaoVien(namhoc, giaovien);
        }
    }
}
